using NewFormatProject.Infrastructure.EFCore;
using NewFormatProject.Infrastructure.Dto.Requests.Objects;
namespace NewFormatProject.Server.Instances.Extends.Requests
{
	public static class EntitySysErrorLogsExtend
{
		public static SysErrorLogs ToEntity(this RequestSysErrorLogsDto dto)
		{
			return new SysErrorLogs
			{
				ElId = dto.id,
				ElMessage = dto.message,
				ElParams = dto.@params,
				ElUrl = dto.url,
				ElStackTrack = dto.stackTrack,
				ElErrorTime = dto.errorTime,
			};
		}
	}
}
